﻿@{
    ViewBag.Title = "Details"; 
    Layout = "~/Views/Shared/_Form.cshtml";
}
<script>
    layui.use(['jquery', 'form', 'laydate', 'common'], function () {
        var form = layui.form,
            $ = layui.$,
            common = layui.common,
            laydate = layui.laydate;
        var keyValue = $.request("keyValue");
        //权限字段
        common.authorizeFields('adminform');
        //此处需修改
        //类型为时间时
        //laydate.render({
            //elem: '#F_Birthday'
            //, btns: ['clear', 'now']
            //, trigger: 'click',
            //format: 'yyyy-MM-dd',
        //});

        $(function () {
            initControl();
            common.ajax({
                url: '/SalaryManagement/Salarytableitems/GetFormJson',
                dataType: 'json',
                data: { keyValue: keyValue },
                async: false,
                success: function (data) {
                    common.val('adminform', data);
                    common.setReadOnly('adminform');
                    form.render();
                 }
            });
       });
       wcLoading.close();

       function initControl() {
           //此处需修改
           //绑定数据源
           //类型为下拉框时
       }
   });
</script>

<body>
    <div class="layuimini-container">
        <div class="layuimini-main">
            <div class="layui-form layuimini-form" lay-filter="adminform">
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_Date</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_Date" name="F_Date" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_UserNum</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_UserNum" name="F_UserNum" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_RealName</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_RealName" name="F_RealName" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_BasicSalary</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_BasicSalary" name="F_BasicSalary" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_JopSalary</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_JopSalary" name="F_JopSalary" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_PerformanceSalary</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_PerformanceSalary" name="F_PerformanceSalary" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_ComAgeSalary</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_ComAgeSalary" name="F_ComAgeSalary" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_BenefitSalary</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_BenefitSalary" name="F_BenefitSalary" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_Times2</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_Times2" name="F_Times2" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_Times3</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_Times3" name="F_Times3" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_Times4</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_Times4" name="F_Times4" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_TimesSalary</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_TimesSalary" name="F_TimesSalary" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_NightShiftSalary</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_NightShiftSalary" name="F_NightShiftSalary" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_Holiday</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_Holiday" name="F_Holiday" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_HolidaySalary</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_HolidaySalary" name="F_HolidaySalary" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_WelfareSubsidy</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_WelfareSubsidy" name="F_WelfareSubsidy" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_WelfareSubsidySalary</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_WelfareSubsidySalary" name="F_WelfareSubsidySalary" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_InsuranceSalary</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_InsuranceSalary" name="F_InsuranceSalary" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_AwardSalary</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_AwardSalary" name="F_AwardSalary" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_OtherSalary</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_OtherSalary" name="F_OtherSalary" lay-verify="required" class="layui-input">
                   </div>
               </div>
                <div class="layui-form-item layui-hide">
                   <label class="layui-form-label required">F_TaxSalary</label>
                   <div class="layui-input-block">
                        <input type="text" id="F_TaxSalary" name="F_TaxSalary" lay-verify="required" class="layui-input">
                   </div>
               </div>
            </div>
        </div>
    </div>
</body>

